package com.huawei.crm.sample.infrastructure.outbound.gateway;

import com.huawei.crm.sample.application.order.gateway.CustomerGateway;
import org.springframework.stereotype.Component;

@Component
public class CustomerGatewayImpl implements CustomerGateway {
    @Override
    public String getCustomerNameById(String customerId) {
        // TODO: 实际应远程调用客户服务，这里仅模拟
        if ("C001".equals(customerId)) {
            return "华为客户";
        }
        return "未知客户";
    }
} 